<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="assets/css/amazeui.min.css"/>
<link rel="stylesheet" href="assets/css/admin.css">
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/app.js"></script>


<script type="text/javascript">





</script>


</head>
<body>
<!--[if lte IE 9]><p class="browsehappy">升级你的浏览器吧！ <a href="http://se.360.cn/" target="_blank">升级浏览器</a>以获得更好的体验！</p><![endif]-->






</head>

<body>

<header class="am-topbar admin-header">
  <div class="am-topbar-brand"><img src="assets/i/logo.png"></div>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav admin-header-list">

   <li class="am-dropdown tognzhi" data-am-dropdown>
  <button class="am-btn am-btn-primary am-dropdown-toggle am-btn-xs am-radius am-icon-bell-o" data-am-dropdown-toggle>${user.username}&nbsp;&nbsp;&nbsp;</button>
  <ul class="am-dropdown-content">
  	
  	
  	
    <!--<li class="am-dropdown-header">所有消息都在这里</li>-->

    
<li><a href="exitLogin">用户注销<span class="am-badge am-badge-danger am-round"></span></a></a></li>
    
    
    
  </ul>
</li>

 





      <li class="am-hide-sm-only" style="float: right;"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main"> 

<div class="nav-navicon admin-main admin-sidebar">
    
   <div class="sideMenu am-icon-dashboard"
				style="color:#aeb2b7; margin: 10px 0 0 0;"> 欢迎系统管理员：${user.username}</div>
    <div class="sideMenu">
     <h3 class="am-icon-flag"><em></em> <a href="#">订单管理</a></h3>
      <ul>
        <li><a href="orderList">订单列表</a></li>
        <!--<li class="func" dataType='html' dataLink='msn.htm' iconImg='images/msn.gif'>添加订单</li>-->
        <li><a href="addorder">添加订单</a></li>
       <!--<li><a href="商品列表.html">订单详情</a></li>-->
    
      </ul>
      <h3 class="am-icon-cart-plus"><em></em> <a href="#"> 物品管理</a></h3>
      <ul>
        <li><a href=GMgetAllGoods>物品列表</a></li>
        <li><a href="toGMaddGoods">添加物品</a></li>
      </ul>
       <h3 class="am-icon-cart-plus"><em></em> <a href="#"> 用户管理</a></h3>
      <ul>
        <li><a href="getUser">用户列表</a></li>
      </ul>
       <h3 class="am-icon-cart-plus"><em></em> <a href="#"> 房间管理</a></h3>
      <ul>
        <li><a href="GMgetAllRoom">房间列表</a></li>
      </ul>
       <h3 class="am-icon-cart-plus"><em></em> <a href="#"> 房间类型管理</a></h3>
      <ul>
        <li><a href="roomList">房间类型列表</a></li>
        <li><a href="addRoomTypee">添加房间类型</a></li>
      </ul>

    
    <script type="text/javascript">
			jQuery(".sideMenu").slide({
				titCell:"h3", //鼠标触发对象
				targetCell:"ul", //与titCell一一对应，第n个titCell控制第n个targetCell的显示隐藏
				effect:"slideDown", //targetCell下拉效果
				delayTime:300 , //效果时间
				triggerTime:150, //鼠标延迟触发时间（默认150）
				defaultPlay:true,//默认是否执行效果（默认true）
				returnDefault:true //鼠标从.sideMen移走后返回默认状态（默认false）
				});
		</script> 

    
    
    
    
    
    
    
</div>

<div class=" admin-content">
	
		<div class="daohang">
			<ul>
			<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">前台<a href="getAllGoods" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
<c:if test="${user.roleid==1}">
				
				
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">后台管理<a href="GMgetAllGoods" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>				
				
				
				</c:if>				
			</ul>

       

	
</div>
	
	


<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 房间列表</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： 后台管理 > <a href="#">房间列表</a></dl>
      
      <dl>
        <button type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus"> 添加产品</button>
      </dl>
      
      
    </div>
	<form action="getRoomByState" method="post">
	<div class="am-btn-toolbars am-btn-toolbar am-kg am-cf">
  <ul>
    <li>
      <div class="am-btn-group am-btn-group-xs">
      
      </div>
    </li>
    <li>
     <div class="am-btn-group am-btn-group-xs">
      <select data-am-selected="{btnWidth: 90, btnSize: 'sm', btnStyle: 'default'}" name="roomState">
        <option value="0">闲置</option>
        <option value="1">入住</option>
      </select>
      </div>
      
      
      
    
    </li>
    <li><input type="submit" class="am-btn am-radius am-btn-xs am-btn-success" style="margin-top: -1px;" value="搜索"></li>
  </ul>
</div>
</form>
      

    <form class="am-form am-g">
          <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
            <thead>
              <tr class="am-success">
                <th class="table-check"><input type="checkbox" /></th>
                <th class="table-title">房间ID</th>
                <th class="table-type">房间类型</th>
                <th class="table-author am-hide-sm-only">是否入住 <i class="am-icon-check am-text-warning"></i> <i class="am-icon-close am-text-primary"></i></th>
              
                <th width="163px" class="table-set">操作</th>
              </tr>
            </thead>
            <tbody>
            
            
            <c:forEach items="${room}" var="room">
              <tr>
                <td><input type="checkbox" /></td>
                <td>${room.roomid}</td>
                <td><a href="#">${room.roomtypename}</a></td>
                <td class="am-hide-sm-only">
                
                
                <c:if test="${room.roomstate==false}">
                
                <i class="am-icon-close am-text-primary"></i>
                </c:if>
                
                <c:if test="${room.roomstate==true}">
                
                <i class="am-icon-check am-text-warning"></i>
                </c:if>
                
                
                
               </td>
                
                <td><div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                      <button class="am-btn am-btn-default am-btn-xs am-text-danger am-round"> <span class="am-icon-trash-o"> <a href="deleteRoom?roomid=${room.roomid}"> 删除</a> </span></button>
                    </div>
                  </div></td>
              </tr>
             </c:forEach>
             
             <c:forEach items="${room2}" var="room">
              <tr>
                <td><input type="checkbox" /></td>
                <td>${room.roomid}</td>
                <td><a href="#">${room.roomtypename}</a></td>
                <td class="am-hide-sm-only">
                
                
                <c:if test="${room.roomstate==false}">
                
                <i class="am-icon-close am-text-primary"></i>
                </c:if>
                
                <c:if test="${room.roomstate==true}">
                
                <i class="am-icon-check am-text-warning"></i>
                </c:if>
                
                
                
               </td>
                
                <td><div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                      <button class="am-btn am-btn-default am-btn-xs am-text-secondary am-round"><span class="am-icon-pencil-square-o">修改</span></button>
                      <button class="am-btn am-btn-default am-btn-xs am-text-danger am-round"> <span class="am-icon-trash-o"> <a href="deleteRoom?roomid=${room.roomid}"> 删除</a> </span></button>
                    </div>
                  </div></td>
              </tr>
             </c:forEach>
             
            </tbody>
          </table>
          
                 <div class="am-btn-group am-btn-group-xs">
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
            </div>
          
          <ul class="am-pagination am-fr">
                <li class="am-disabled"><a href="#">«</a></li>
                <li class="am-active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">»</a></li>
              </ul>
          
          
          
      
          <hr />
          <p>注：.....</p>
        </form>
 
 
 
 
 <div class="foods">
  <ul>
   -  More Templates
  </ul>
  <dl>
    <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
  </dl>
</div>




</div>

</div>




</div>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/polyfill/rem.min.js"></script>
<script src="assets/js/polyfill/respond.min.js"></script>
<script src="assets/js/amazeui.legacy.js"></script>
<![endif]--> 

<!--[if (gte IE 9)|!(IE)]><!--> 
<script src="assets/js/amazeui.min.js"></script>
<!--<![endif]-->



</body>
</html>
